package com.whfc.wxmp.api.emp.service.impl;

import com.whfc.common.result.ListData;
import com.whfc.emp.dto.AppWorkTypeDTO;
import com.whfc.emp.service.AppEmpWorkService;
import com.whfc.wxmp.api.emp.service.WxAppEmpWorkService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClasssName WxAppEmpWorkServiceImpl
 * @Description 人员模块-系统设置
 * @Author hw
 * @Date 2021/1/11 16:05
 * @Version 1.0
 */
@Service
public class WxAppEmpWorkServiceImpl implements WxAppEmpWorkService {

    @DubboReference(interfaceClass = AppEmpWorkService.class, version = "1.0.0")
    private AppEmpWorkService appEmpWorkService;

    @Override
    public ListData<AppWorkTypeDTO> workTypeList(Integer deptId) {
        List<AppWorkTypeDTO> list = appEmpWorkService.workTypeList(deptId);
        return new ListData<>(list);
    }
}
